<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@include file="/commons/header.jsp" %>
<div style="margin-left:210px;margin-top:65px;padding:10px 5px 0 5px;">

    <div style="line-height:26px;height:26px;margin-bottom:10px;">
        <h1 style="float:left;font-size:26px;">个人信息</h1>

        <span class="layui-breadcrumb" style="float:right;font-size:12px;">
                <a href="#">首页</a>
                <a><cite>个人信息</cite></a>
            </span>
    </div>

    <form class="layui-form" action="">

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-inline">
                    <input type="text" value="${user.userName}" readonly="readonly" lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-inline">
                    <input type="text" value="${user.realName}" readonly="readonly" autocomplete="off"
                           lay-verify="required" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">身份证号</label>
                <div class="layui-input-inline">
                    <input type="text" name="identity" readonly="readonly"
                           value="${user.usersExtra.bodyCard}" class="layui-input">
                </div>
            </div>


        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-inline">
                    <c:if test="${user.gender=='男'}">
                        <input type="radio" name="sex" value="男" title="男" checked="checked">
                        <input type="radio" name="sex" value="女" title="女">
                    </c:if>
                    <c:if test="${user.gender=='女'}">
                        <input type="radio" name="sex" value="男" title="男">
                        <input type="radio" name="sex" value="女" title="女" checked="checked">
                    </c:if>

                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">邮箱</label>
                <div class="layui-input-inline">
                    <input type="text" name="email" value="${user.usersExtra.email}" lay-verify="email"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">电话号码</label>
                <div class="layui-input-inline">
                    <input type="tel" name="phone" value="${user.usersExtra.phone}" lay-verify="phone"
                           autocomplete="off" class="layui-input">
                </div>
            </div>


        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">注册日期</label>
                <div class="layui-input-inline">
                    <input class="layui-input" value="${user.usersExtra.subTime}" placeholder="注册日期" readonly="readonly"
                           lay-verify="required"
                           onclick="layui.laydate({elem: this, festival: true})">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">学号</label>
                <div class="layui-input-inline">
                    <input type="text" name="idcard" value="${user.studentNum}" lay-verify="required" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">所在班级</label>
                <div class="layui-input-inline">
                    <input type="text" value="${classes.classes.name}-${classes.name}" class="layui-input">
                </div>
            </div>

        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">身份</label>
                <div class="layui-input-inline">
                    <input class="layui-input" type="text"
                           <c:if test="${user.usersExtra.isTeacher==1}">value="老师"</c:if> <c:if test="${user.usersExtra.isTeacher==1}">value="老师"</c:if>readonly="readonly"
                           lay-verify="required">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">可借书数量</label>
                <div class="layui-input-inline">
                    <input type="text" value="${user.mostBorrowNum}" readonly="readonly" class="layui-input">
                </div>
            </div>


        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">寝室地址</label>
            <div class="layui-input-block">
                <input type="text" readonly="readonly" class="layui-input" value="${user.usersExtra.address}">
            </div>
        </div>


    </form>
    <script src="${pageContext.request.contextPath}/lib/layui.all.js"/>
<%@include file="/commons/footer.jsp" %>